﻿/// <reference path = "//Microsoft.WinJS.1.0/js/base.js" />
WinJS.Namespace.define("DataStructures", {
    Portfolio: WinJS.Class.define(function (name, startdate, assets) {
        //if(Portfolio.
    }),
    Asset: WinJS.Class.define(function(symbol, portfolio) {
    })
});

var Portfolio = function (name, startdate, assets) {
    this.name = name;

    if (String.isPrototypeOf(startdate))
        this.startdate = new Date(startdate);
    else (Date.isPrototypeOf(startdate))
        this.startdate = startdate;
    this.assets = assets;


}